package com.yict.csms.system.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.yict.common.dao.impl.CommonDao;
import com.yict.csms.system.entity.Option;
import com.yict.csms.system.entity.Wharf;

/**
 * 
 * 
 * @author Patrick.Deng
 * 
 */
@Repository
public class OptionDaoImpl extends CommonDao<Option, Long> {
	
	public List<Wharf> getWharf() {
		List<Wharf> list = new ArrayList<Wharf>();
		String queryString = "from Wharf as c";
		try {
			list = this.getTemplate().find(queryString);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return list;
	}
}
